﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace University.Models
{
    public class ScheduleItem
    {

        public int ScheduleItemId { get; set; }

        [Required(ErrorMessage = "Please provide Group value")]
        [Display(Name = "Week day")]
        [Range(1, 7, ErrorMessage = "Not a valid day number")]
        public int WeekDay { get; set; }

        [Required(ErrorMessage = "Ensure you selected")]
        [Display(Name = "Is even")]
        public bool Par { get; set; }

        [Required(ErrorMessage = "Please provide Subject")]
        [Display(Name = "Subject")]
        public virtual Subject Subject { get; set; }

        [Required(ErrorMessage = "Please provide Professor")]
        [Display(Name = "Professor")]
        public virtual Professor Professor { get; set; }

        [Required(ErrorMessage = "Please provide ROOM for the lecture")]
        [Display(Name = "Room")]
        public string Room { get; set; }

        [Required(ErrorMessage = "Please provide start time for the lecture")]
        [Display(Name = "Start time")]
        public DateTime StartTime { get; set; }



    }
}